export const tableOption = {
  menuWidth: 200,
  dialogWidth: 580,
  addTitle: '新增',
  editTitle: '编辑',
  viewTitle: '查看',
  addBtnText: '新增一级',
  rowKey: 'id',
  rowParentKey: 'parentId',
  defaultExpandAll: false,
  selection: false,
  viewBtn: false,
  searchMenuPosition: 'left',
  column: [
    {
      label: '上级分类',
      prop: 'parentId',
      type: 'cascader',
      filterable: true,
      checkStrictly: true,
      align: 'left',
      hide: true,
      showColumn: false,
      span: 24,
      disabled: true,
      display: false,
      props: {
        label: 'typeName',
        value: 'id',
        children: 'childrenList',
      },
      emitPath: false,
      dicData: [],
      value: 0,
    },
    {
      label: '类型编码',
      prop: 'typeCode',
      type: 'input',
      minlength: 0,
      maxlength: 32,
      showWordLimit: true,
      align: 'left',
      search: true,
      span: 24,
      row: true,
      rules: [
        { required: true, message: '请输入分类名称', trigger: 'change' },
        { max: 24, message: '最多32个字' },
      ],
      overHidden: true,
    },
    {
      label: '类型名称',
      prop: 'typeName',
      type: 'input',
      minlength: 0,
      maxlength: 32,
      showWordLimit: true,
      align: 'left',
      search: true,
      span: 24,
      row: true,
      rules: [
        { required: true, message: '请输入分类名称', trigger: 'change' },
        { max: 24, message: '最多32个字' },
      ],
      overHidden: true,
    },
    {
      label: '排序',
      prop: 'seqNo',
      type: 'number',
      min: 0,
      max: 99999999999,
      precision: 0,
      align: 'left',
      span: 24,
      rules: [{ required: true, message: '请输入排序', trigger: 'blur' }],
      labelslot: true,
    },
    // {
    //   label: '创建时间',
    //   prop: 'createdAt',
    //   type: 'datetime',
    //   align: 'left',
    //   display: false,
    //   search: true,
    //   searchSpan: 8,
    //   searchRange: true,
    //   startPlaceholder: '开始时间',
    //   endPlaceholder: '结束时间',
    //   valueFormat: 'yyyy-MM-dd HH:mm:ss',
    // },
    {
      label: '类型描述',
      prop: 'describe',
      type: 'textarea',
      minlength: 0,
      maxlength: 255,
      showWordLimit: true,
      align: 'left',
      span: 24,
      rules: [{ max: 255, message: '最多255个字' }],
      overHidden: true,
    },
  ],
}
